import com.demo.controller.UserController2;
import com.demo.controller.UserController3;
import com.demo.model.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-02-10
 * Time: 17:24
 */
public class App2 {

    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

        UserController3 userController3 = context.getBean("userController3", UserController3.class);
        userController3.doUserController3();


//        UserController2 userController2 = context.getBean("userController2", UserController2.class);
//        userController2.doUserController();
    }
}
